var EP=require('eventproxy');
var mock=require('./mock.js');

var ep=new EP();
var urls=[1,2,3];
ep.tail('get','read',(get,read)=>{
    console.log('Done:',get,read);
});

ep.fail((err)=>{
    console.error('EP ERROR:',err);
});

mock.get(0,ep.done('get'));

setInterval(()=>{
    mock.read(0,ep.done('read'));
},1000);